<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// 
//  user_model.php
//  www.6block.com
//  
//  Created by Will_Lee on 2011-05-21.
//  Copyright 2011 lishuzu. All rights reserved.
// 


class Usergroup_model extends CI_Model
{
		function __construct(){
			parent::__construct();
			$this->load->model('user_model');
			$this->user = $this->session->userdata('user') ? $this->session->userdata('user') : '';
		}
		
		function get_group($gid){
			if ($gid) {
				$this->db->where('gid', $gid);
				$query = $this->db->get('usergroup');
				return $query->first_row('array');
			}else{
				return false;
			}
		}
}
?>